if user specified -o, be sure it means something.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 22 Jul 2005 15:41:42 +0000 (15:41 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 22 Jul 2005 15:41:42 +0000 (15:41 +0000)
Add hint for positioning -x in cmd line in short help.

gpsbabel/main.c

index 2b1afdfe411f0c0a2e90bdcc3d095051d67ac1cb..01e0adaac5facbbdc8ed85a22ee42d280e9a2c76 100644 (file)
@@ -54,7 +54,7 @@ usage(const char *pname, int shorter)
 "    -t               Process track information\n"
 "    -w               Process waypoint information [default]\n"
 "    -N               No smart icons on output\n"
-"    -x filtername    Invoke filter\n"
+"    -x filtername    Invoke filter (place between inputs and output) \n"
 "    -D level         Set debug level [%d]\n"
 "    -h, -?           Print detailed help and exit\n"
 "    -V               Print GPSBabel version and exit\n"
@@ -153,6 +153,9 @@ main(int argc, char *argv[])
                                optarg = argv[argn][2]
                                        ? argv[argn]+2 : argv[++argn];
                                ovecs = find_vec(optarg, &ovec_opts);
+                               if (ovecs == NULL) {
+                                       fatal ("Output type '%s' not recognized\n", optarg);
+                               }
                                break;
                        case 'f':
                                optarg = argv[argn][2]